<?php
class FaqsFForm extends BaseFormAdmin{
	public function configure(){
		$langs = SysLanguages::getAllLang();
		foreach($langs as $lang){
			$this->setWidget('question_'.$lang, new sfWidgetFormTextarea(array(), array('class' => 'required hz-required')));
			$this->setValidator('question_'.$lang, new sfValidatorString(array('required' => false)));
			
			$this->setWidget('answer_'.$lang, new sfWidgetFormTextarea(array(), array('class' => 'required editor')));
			$this->setValidator('answer_'.$lang, new sfValidatorString(array('required' => false)));

		}
		parent::configure();
	}
}
